package com.neuedu.config;

import com.aliyun.oss.OSS;
import com.aliyun.oss.OSSClientBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AliyunConfig {
    @Bean
    public OSS OSSClient(){
        String endpoint = "oss-cn-beijing.aliyuncs.com";
        String accessKeyId = "LTAI4G5oV9ptbNyMnEGYeprW";
        String accessKeySecret = "AcPPfnlvVVTIl3eSCIaVqJO92PMZyf";
        return new OSSClientBuilder().build(endpoint,accessKeyId,accessKeySecret);
    }
}
